<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  <input type="text" id="num1">
  <input type="button" value="检测" onclick="aaa()">
 </body>
 <script>
	function aaa(){
	var a =num1.value;
	
	for(var b = 1;b<=a;b++ ){
	
		if(a%b==0){
		
		console.log(b);
		
		
		}
	
	
	
	}
	
	
	
	
	
	
	
	}
 
 
 
 
 
 </script>
</html>
